package com.zhaozhaonews.search.controller.v1;


import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.model.serach.dto.UserSearchDto;
import com.zhaozhaonews.search.service.ApAssociateWordsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author WanJl
 * @version 1.0
 * @title ApAssociateWordsController
 * @description
 * @create 2025/2/22
 */
@RestController
@RequestMapping("/api/v1/associate")
public class ApAssociateWordsController {

    @Resource
    private ApAssociateWordsService apAssociateWordsService;

    @PostMapping("/search")
    public ResponseResult search(@RequestBody UserSearchDto userSearchDto) {
        return apAssociateWordsService.findAssociateWords(userSearchDto);
    }
}
